# ---------------------------------------------------------------------
# Qtech.BFC-PBIC-S.get_chassis_id
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------

# NOC modules
from noc.core.script.base import BaseScript
from noc.sa.interfaces.igetchassisid import IGetChassisID


class Script(BaseScript):
    name = "Qtech.BFC_PBIC_S.get_chassis_id"
    cache = True
    interface = IGetChassisID

    def execute_snmp(self):
        base = self.snmp.get("1.3.6.1.3.55.1.2.2.0")
        if base:
            return [{"first_chassis_mac": base, "last_chassis_mac": base}]
